# form表单

from flask import  Flask,render_template,request

app = Flask(__name__)

# 访问/register 跳转到注册页面
@app.route("/register")
def register():
    return render_template("register.html")


# 访问/list 跳转到用户列表页面
@app.route("/list",methods=["GET","POST"])
def user_list():
   if request.method == "POST":
       # 获取所有的表单信息
       result = request.form
       print(result)
       return render_template("index.html", result=result)

if __name__ == '__main__':
    app.run()